/**
 * 
 */
package com.lanswon.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lanswon.dao.ArticleMapper;
import com.lanswon.dao.CommonProblemMapper;
import com.lanswon.dao.HostBankMapper;
import com.lanswon.entity.ArticleVO;
import com.lanswon.entity.CommonProblem;
import com.lanswon.entity.HostBank;

/**
 * @author lanswon
 *
 */
@Service
public class HostbankService {
	@Autowired
	private HostBankMapper hostBankMapper;


	public List<HostBank> findHostbankByCondition(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return hostBankMapper.selectHostbankByCondition(map);
	}


	public void updateHostbank(HostBank hostbank) {
		hostbank.setUpdateTime(new Date());
		hostBankMapper.updateByPrimaryKeySelective(hostbank);
	}


	public void addHostbank(HostBank hostbank) {
		Date d = new Date();
		hostbank.setCreateTime(d);
		hostbank.setUpdateTime(d);
		hostBankMapper.insert(hostbank);
	}

	
}
